<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>tooltipster插件使用-更新提示框内容</title>
        <link rel="stylesheet" href="css/tooltipster.bundle.css" />
        <style>
            .tooltip_template { display:none;width: 600px;height: 400px;background-color: #ccc; }
        </style>
    </head>
    <body>
        <span id="example" class="tooltip" title="This is my span's tooltip message!">打开提示框，关闭提示框的方法</span>
        <script src="http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>
        <script src="js/tooltipster.bundle.min.js"></script>
        <script>
        $(document).ready(function() {
           
           $('.tooltip').tooltipster();
           $('#example').tooltipster('content','my new tooltip content');
           // var instance=$(".tooltip").tooltipster();
           // instance.content("修改instance的提示框的content");//报错
        });
        </script>
    </body>
</html>